package com.eqxiu.ieditor.weixin.service;

import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.eqxiu.ieditor.weixin.api.StylishProductServiceApi;
import com.eqxiu.ieditor.weixin.dao.StylishProductDao;
import com.eqxiu.ieditor.weixin.dto.StylishProduct;

/**
* @description 爆款Product
* @author 
* @modified DuYoulong 重构 
* @creatTime 2019年4月10日  
* @since 1.0.0
*/
@Service
public class StylishProductServiceApiImpl implements StylishProductServiceApi {
	

	@Autowired
    private StylishProductDao stylishProductDao;

	@Override
	public StylishProduct getById(Integer id) {
		StylishProduct stylishProduct = new StylishProduct();
		com.eqxiu.ieditor.weixin.model.StylishProduct stylishProductSorce = stylishProductDao.selectByPrimaryKey(id);
		if(null!= stylishProductSorce){
			BeanUtils.copyProperties(stylishProductSorce,stylishProduct);
		}
		return stylishProduct;
	}

}
